<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ReportLost
 *
 * @ORM\Table(name="ue_report_lost", uniqueConstraints={@ORM\UniqueConstraint(name="stock_id", columns={"stock_id"})}, indexes={@ORM\Index(name="ue_report_lost_admin_id_idx", columns={"admin_id"})})
 * @ORM\Entity
 */
class ReportLost
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var \Admin
     *
     * @ORM\ManyToOne(targetEntity="Admin")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="admin_id", referencedColumnName="id")
     * })
     */
    private $admin;

    /**
     * @var \StockItem
     *
     * @ORM\ManyToOne(targetEntity="StockItem")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="stock_id", referencedColumnName="id")
     * })
     */
    private $stock;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set admin
     *
     * @param \Ue\ErpBundle\Entity\Admin $admin
     * @return ReportLost
     */
    public function setAdmin(\Ue\ErpBundle\Entity\Admin $admin = null)
    {
        $this->admin = $admin;

        return $this;
    }

    /**
     * Get admin
     *
     * @return \Ue\ErpBundle\Entity\Admin 
     */
    public function getAdmin()
    {
        return $this->admin;
    }

    /**
     * Set stock
     *
     * @param \Ue\ErpBundle\Entity\StockItem $stock
     * @return ReportLost
     */
    public function setStock(\Ue\ErpBundle\Entity\StockItem $stock = null)
    {
        $this->stock = $stock;

        return $this;
    }

    /**
     * Get stock
     *
     * @return \Ue\ErpBundle\Entity\StockItem 
     */
    public function getStock()
    {
        return $this->stock;
    }
}
